import request from '@/utils/request'

// 查询商品分类规格列表
export function listCategorySpecification(query) {
  return request({
    url: '/product/categorySpecification/list',
    method: 'get',
    params: query
  })
}

// 查询商品分类规格详细
export function getCategorySpecification(id) {
  return request({
    url: '/product/categorySpecification/' + id,
    method: 'get'
  })
}

// 新增商品分类规格
export function addCategorySpecification(data) {
  return request({
    url: '/product/categorySpecification',
    method: 'post',
    data: data
  })
}

// 修改商品分类规格
export function updateCategorySpecification(data) {
  return request({
    url: '/product/categorySpecification',
    method: 'put',
    data: data
  })
}

// 删除商品分类规格
export function delCategorySpecification(id) {
  return request({
    url: '/product/categorySpecification/' + id,
    method: 'delete'
  })
}
